package com.un.ebs.product.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.un.ebs.product.domain.ProductExt;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 2 Mapper 接口
 * </p>
 *
 * @author liubo
 * @since 2020-02-16
 */
@Component
public interface ProductExtMapper extends BaseMapper<ProductExt> {

    /**
     * SPU 详情，不按租户过滤
     *
     * @param productId
     * @return
     */
    @SqlParser(filter = true)
    @Select("select * from v_product_ext where id=#{productId}")
    ProductExt queryById(@Param("productId") String productId);
}
